package com.lyk.coursearrange.entity;

import cn.hutool.crypto.Mode;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("tb_lessonschedule")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Lessonschedule extends Model<Lessonschedule> {
    private static final long serialVersionUID=1L;

    /**
     * 课时id
     */
    @TableId(value = "le_id", type = IdType.AUTO)
    private Long leId;
    /**
     * 学段 1：小学 2：初中 3：高中
     */
    private Long lePeriod;
    /**
     * 类型1：网课 2：上门
     */
    private Long leType;
    /**
     * 课时费
     */
    private String leMoney;


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
